package com.webware.view.client.main.presenter;

import com.mvp4g.client.annotation.Presenter;
import com.mvp4g.client.presenter.LazyPresenter;
import com.webware.view.client.app.AppEventBus;
import com.webware.view.client.main.presenter.interfaces.IMainPageView;
import com.webware.view.client.main.presenter.interfaces.IMainPageView.IMainPagePresenter;
import com.webware.view.client.main.view.MainPageView;

@Presenter(view = MainPageView.class)
public class MainPagePresenter extends
	LazyPresenter<IMainPageView, AppEventBus> implements IMainPagePresenter {

    public void onGoToMainPage(String name) {
	view.setName(name);
	eventBus.setBody(view);
    }

}
